package com.atguigu.servicebase.exceptionhandler;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * 自定义异常类在使用时应手动抛出
 * throw new GuliException(code,msg);
 * */
@Data
@AllArgsConstructor//生成有参数构造方法
@NoArgsConstructor//生成无参数构造
public class GuliException extends RuntimeException{
    private Integer code;//状态码
    private String msg;//异常信息
}
